﻿/*======================================*\
* Author: 刘杰
* LastModifyUser: 刘杰
* Description:  
* FileName ： PositionDefaultSys
* CreateTime： 2012/9/11 10:13:47
* Remark: 岗位匹配默认系统
\*======================================*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;

namespace Test.Model
{
    /// <summary>
    /// 岗位匹配默认系统
    /// </summary>
    [Serializable]
    [XmlRoot(ElementName = "PositionDefaultSys")]
    public class PositionDefaultSys : ICloneable
    {
        #region 类属性
        /// <summary>
        /// 岗位编号
        /// </summary>
        [XmlAttribute(AttributeName = "id")]
        public int Id { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        [XmlAttribute(AttributeName = "name")]
        public string ItemName { get; set; }

        /// <summary>
        /// 是否开启
        /// </summary>
        [XmlAttribute(AttributeName = "isenable")]
        public bool IsEnable { get; set; }

        /// <summary>
        /// 平台分配的项目唯一标识
        /// </summary>
        [XmlElement(ElementName = "defaultProjectId")]
        public Guid DefaultProjectId { get; set; }

        /// <summary>
        /// 平台分配的项目名称
        /// </summary>
        [XmlElement(ElementName = "projectName")]
        public string ProjectName { get; set; }     

        /// <summary>
        /// 区域名称(一般为城市拼音简写)
        /// <remarks>
        /// <para>* 若是共享不区别城市的，则为Sz</para>
        /// </remarks>
        /// </summary>
        [XmlElement(ElementName = "areacode")]
        public string AreaCode { get; set; }

        #endregion

        /// <summary>
        /// 复制结构副本(在创建菜单时使用)
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            return (PositionDefaultSys)this.MemberwiseClone();
        }
    }
}